<div  class='menuGeral'>
<ul id="menu-7">
<?php
$site = $this->Session->read('coreSites');
foreach ($coreSites as $site2){
    $class = "";
    if($site2["CoreSite"]["id"] == $site['id']){
        $class = "active";
    }
    echo "<li><a href='{$this->Html->url(array('controller' => $currentModuleName, 'action'=>$currentMethodName))}?site={$site2["CoreSite"]["id"]}' class='{$class}' >{$site2["CoreSite"]["cosi_name"]}</a></li>";
}
?>
</ul>
</div>